package cn.wolfcode.luowowo.respository;

import cn.wolfcode.luowowo.domain.StrategyCatalog;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 攻略目录持久层接口
 */
@Repository
public interface StrategyCatalogRespository extends MongoRepository<StrategyCatalog, String> {


    /**
     * 根据目的地id 查询攻略分类
     *
     * @param id
     * @return
     */
    List<StrategyCatalog> findByDestId(String id);
}
